Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(logs): Log noise filter #348

Merged
merged 30 commits into from
Jul 2, 2024
Merged

feat(logs): Log noise filter #348

merged 30 commits into from
Jul 2, 2024

Conversation

NikolaMilosa
Copy link
Contributor

Idea of this is to allow us to dinamically control which logs are filtered and which are not. Usually if something fails and developers oversee it, we end up having a lot of garbage logs.
Example:

Error removing artifact ConsensusMessageId { hash: Finalization(CryptoHash(0x4ac5e6a705e6ef9105315bb77614094d89191c2ea628f840d8cfb45eae499793)), height: 69300676 }
Error removing artifact ConsensusMessageId { hash: NotarizationShare(CryptoHash(0xd0bfec66884cd9ec698fb91e1ca709fedf3a8365a81ac24fc2aaea4dd6a7b291)), height: 69301396 }
Error removing artifact ConsensusMessageId { hash: NotarizationShare(CryptoHash(0xd0bfec66884cd9ec698fb91e1ca709fedf3a8365a81ac24fc2aaea4dd6a7b291)), height: 69301396 }
Error removing artifact ConsensusMessageId { hash: Finalization(CryptoHash(0x95ba5f5ed8aae64a4d99d1e6317c03154f25c69f8a0561c19cc80ad388adde56)), height: 69300677 }
Error removing artifact ConsensusMessageId { hash: NotarizationShare(CryptoHash(0xb0237e7d8f07e69548ef7368319d90a4647486799fbece19a9d3e3c66e6bf6f6)), height: 69301397 }
Error removing artifact ConsensusMessageId { hash: Finalization(CryptoHash(0x27725112e68c94ee48ba7bf62e582156f79d3027bee7182196b3a55a1c6a8699)), height: 69300678 }
Error removing artifact ConsensusMessageId { hash: Finalization(CryptoHash(0xbf2c529025ed93a2cf8bd98a5452285fd9d286f16b7e4ee291efcf3d97bac4ad)), height: 69300677 }
Error removing artifact ConsensusMessageId { hash: NotarizationShare(CryptoHash(0xe72cfd3a71386f5fbf7e8b22e44154fd0b11087b191bcd1670272ba9042dc2aa)), height: 69301397 }

These logs will be sampled and allowed through at much lower rate.

@NikolaMilosa NikolaMilosa requested a review from a team as a code owner April 26, 2024 14:30
k8s/oci_images.bzl Outdated Show resolved Hide resolved
rs/oci_images.bzl Outdated Show resolved Hide resolved
rs/ic-observability/log-noise-filter-backend/Cargo.toml Outdated Show resolved Hide resolved
sasa-tomic

This comment was marked as duplicate.

Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, very nice! Thanks!

@NikolaMilosa NikolaMilosa merged commit 68b109e into main Jul 2, 2024
4 checks passed
@NikolaMilosa NikolaMilosa deleted the nm-log-noise-filter branch July 2, 2024 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants